package com.mxcyk.org.插件.截屏;

import java.awt.*;

final public class ScreanSizeUtil {

	private static Dimension scrSize;
	static {
		if (scrSize == null) {
			scrSize = getDimension();
		}
	}

	public static Dimension getDimension() {
		scrSize = Toolkit.getDefaultToolkit().getScreenSize();
		return scrSize;
	}

	public static int getWidth() {
		return (int) scrSize.getWidth();
	}

	public static int getHetgth() {
		return (int) scrSize.getHeight();
	}
}